package FWK.util;

import java.awt.Cursor;

import FWK.components.FwkComponent;

import com.toedter.calendar.JDateChooser;

public class FwkDatePicker extends JDateChooser implements FwkComponent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1579966756207609473L;

	public FwkDatePicker(){
		this.getDateEditor().setEnabled(false);
	}
	
	@Override
	public void activate() {
		this.setEnabled(true);
		this.getDateEditor().setEnabled(false);
		this.setCursor(Cursor.getDefaultCursor());
	}

	@Override
	public void standBy() {
		this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
		this.setEnabled(false);
	}

}
